﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Custom_Recommended
{
    public partial class frmPreferences : Form
    {
        public frmPreferences()
        {
            InitializeComponent();
        }

        private void frmPreferences_Load(object sender, EventArgs e)
        {
            chkFolderSaveXML.Checked = Settings.blnFolderSaveXML;
            trackHeroes.Value = Settings.intHeroesDisplayed;
        }

        private void btnApply_Click(object sender, EventArgs e)
        {
            Settings.blnFolderSaveXML = chkFolderSaveXML.Checked;
            Settings.intHeroesDisplayed = trackHeroes.Value;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
